package com.CI.ResendPasswork.Business
{
	import com.CI.ResendPasswork.VO.AccountVO;
	import com.adobe.cairngorm.business.Responder;
	import mx.rpc.AsyncToken;
	import mx.rpc.http.HTTPService;
	
	public class ResendDelegate
	{
		protected var responder : Responder;
		
		public function ResendDelegate(responder : Responder)
		{
			this.responder = responder;
		}
		
		public function sendObject(acc : AccountVO) : void
		{ 
			var params : Object = new Object();
			var service : HTTPService;
			var token : AsyncToken;
			var responder : mx.rpc.Responder;
			
			params.action = 'resendPasswork';
			params.email = acc.email;
			
			service = ServiceLocator.getInstance().getHTTPService("ResendPasswork");
		    	
	    	token = service.send(params);
			responder = new mx.rpc.Responder(Add_onResult, Add_onFault);
			token.addResponder(responder);
		}
		
		protected function Add_onResult(event:ResultEvent) : void
		{
			
		}
		
		protected function Add_onFault(event:FaultEvent) : void
		{
		
		}
	}
}